<template>
	<view>
		<!-- 带label的input框 -->
		<view class="login-form-item">
			<view class="login-form-label">{{name}}</view>
			<slot></slot>
		</view>
	</view>
</template>

<script>
	export default{
		props:{
			name:String
		},
		data(){
			return{}
		}
	}
</script>

<style lang="less">
	.login-form-item:last-child{
		border-bottom: 0;
	}
	.login-form-item {
		padding: 20rpx;
		// margin-bottom: 30rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		border-bottom: 1px solid #FDFDFD;
	}
	.login-form-label {
		padding: 0 20rpx;
		width: 200rpx;
	}
</style>